Skip to content

fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel - #35909

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-agxx3w
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-agxx3w

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgTXY4rajwZcQmpLxS2

Fixes #35876

Clause-②: yes (widening) — new members on the @object-ui/components entry: GridHeaderMenuProvider and useGridHeaderMenu; a new optional headerMenu runtime prop on ObjectGrid (@object-ui/plugin-grid); a new sortBuilder.reorder key in every @object-ui/i18n locale; nothing removed or renamed
Metadata-protocol: none

Flow: dev-thread rule (maintainer 2026-11-20 09:22:50Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back (epic #35547 child, run under that rule by the seat's claim 7045047594).

维护者速读

  • 列表页(所有用列表组件画出的表格):点列头不再直接排序,而是弹出菜单「升序排列 / 降序排列 / 隐藏列」;已有两级以上排序时,选中的列排到第一级,其余各级顺延,不再被清掉;只有一级或没有排序时直接换成这一列。点排序标签改为打开排序面板,不再直接反转方向;面板里每级多了拖动手柄,拖动或用上下键调先后。
  • 属于专题「列表页重做」,修的是「点一下列头,辛苦设好的多级排序全没了,而且已经存成个人设置」和「标签看起来能点开,点了却直接把方向反了」这两个问题。
  • 风险:其他地方的表格(相关列表、仪表盘表格等)保持点列头直接排序,不受影响;列表页的使用者要多点一次才能排序。出问题可直接撤回本 PR,不涉及数据和保存方式。
  • 无。

What changes

The list page's column header opens a menu (@object-ui/components data-table, @object-ui/plugin-grid, @object-ui/plugin-list). Only a table under the new GridHeaderMenuProvider changes; ObjectGrid mounts it when its host passes headerMenu, and ListView passes it on the object-grid it draws (beside cellSelection, the same reach as #35683's ruling 7035276698, as the seat routed). Every other table keeps click-to-sort.

  • A click on a header opens the column menu below it: Sort ascending, Sort descending, Hide column. The header itself never changes the sort; a second click on the same header shuts its menu.
  • Keyboard: every header takes focus (tabIndex 0, aria-haspopup="menu", aria-expanded); Enter, Space or ArrowDown opens the menu with its first entry focused; the arrows move, Enter chooses, Esc shuts it without touching the sort, and focus goes back to the header.
  • A header that does not sort (sortable: false, a masked column) opens the same menu with Hide column alone; its click changes no sort, as before (L2 S1).
  • Hide column chosen from the menu gives focus to the header beside the hidden one (the next, else the previous).
  • The column menu is now a Radix DropdownMenu (non-modal, like the row context menu), wherever it opens: the header under the provider, a right-click on any header, and the design host's caret (Studio 数据栏:「添加字段」常驻工具栏,点列头改字段,名称列排第一,字段属性面板先显示名后内部名 #34794). Its entries are role="menuitem". A press on the control it was opened from is that control's own toggle.
  • The ↑1 / ↓2 header marks are unchanged.

The header menu keeps a multi-level sort (ListView.handleHeaderSort). The table still hands back the one column picked. With no sort or a single level, that column replaces the sort. With two levels or more it becomes the first level and every other level keeps its order after it; a column already in the sort moves up with the picked direction. No level is dropped. Persistence is unchanged (the same onSortChange as before, saved as the reader's own).

A sort chip opens the sort panel (ConditionChipRow, ListView). A click on a sort chip opens every level in one popover (the Sort panel's 「全部排序级别」 body, sortPanelBody: the reset-to-default row, the SortBuilder, the notes) and changes nothing; the chip no longer reverses its direction. The chip's × and its drag between chips are unchanged. toggleSortOrder (its only caller was the chip) is removed from the internal conditionModel.ts, and ConditionChipRow's renderSortLevels is required, so a sort chip is never a button with no action.

The sort builder reorders its levels (@object-ui/components SortBuilder). The card asked to check the existing 「全部排序级别」 entry first: it opens the SortBuilder, which could not reorder levels, so the handle is added there. Each level row starts with a handle (sortBuilder.reorder, 「拖动以调整先后」): drag it onto another row, or press ArrowUp / ArrowDown on the focused handle (focus stays on the moved row's handle). The handle is a span with role="button" and a tab stop, not a <button>, because Firefox starts no HTML5 drag from a button (L2 S2; the repo's line-items grid handle is built the same way). A single level draws it aria-disabled and out of the tab order. The builder's drag events stop at the builder, so a host that draws it inside its own drag target (the sort chip) cannot undo the move (found in the browser, pinned in jsdom). Below sm the handle takes a column beside the level's three lines.

For the phone cards (#35880, #35884)

The sort panel's content is SortBuilder from @object-ui/components: fields (value, label, optional disabled and type), value: SortItem[] and onChange(next: SortItem[]). It reads nothing from the list and writes nothing itself; every add, remove, direction change and reorder goes through onChange. So a phone bottom sheet can draw the same component and hold a staged copy for the 「点 ✓ 才生效」 layer, with no second save path. ListView's sortPanelBody wraps it with the reset-to-default row and the notes for the desktop popover; that wrapper is ListView-internal and the phone container can reuse it or draw SortBuilder directly. The header-menu merge rule lives in ListView.handleHeaderSort (phones draw no column headers, per the card).

Touch: SortBuilder reorders by mouse drag (HTML5 drag and drop) and by ArrowUp / ArrowDown on the handle. Neither works on a touch screen, so #35884 needs a touch reorder affordance of its own (for example up / down buttons, or a touch drag), still writing through the same onChange.

Why

#35876: on a two-level sort, a header click left a single level and stored it; a sort chip reversed its direction at once. The maintainer agreed the fix (「刷新去掉,其他同意」, then 「按这版立卡」), with 「已有多级时放到第一级」 rather than "replace and offer undo".

Acceptance notes

Tests

New:

  • ui/packages/components/src/renderers/complex/__tests__/data-table-header-menu-35876.test.tsx — a header click opens the menu (three menu items) and changes no sort, a second click shuts it; the chosen entry is what the table hands its host; the multi-level marks stay; keyboard Enter → first item focused → ArrowDown → Enter sorts descending and focus returns; Esc shuts with no sort and focus returns; a non-sortable header opens a menu with Hide column alone, is a tab stop, and changes no sort; Hide column from the keyboard moves focus to the header beside it; CONTROL without the provider a click sorts and draws no menu.
  • ui/packages/plugin-list/src/__tests__/ListView.headerMenuSort-35876.test.tsx — ListView asks the grid for headerMenu; the card's four merge cases (two levels + new column → three, new first; two levels + an existing column descending → it moves first; no sort → that column; one level → replaced); a chip click opens the panel with every level and leaves the direction alone; ArrowUp on the second handle makes it the first level and the grid's sort and the chip priority follow; a mouse drag of the third handle onto the first row moves it there and the chip around the panel does not undo it.
  • ui/packages/components/src/__tests__/sort-builder-reorder-35876.test.tsx — named handle per level, a draggable tab stop that is not a <button>; ArrowUp / ArrowDown; arrows past either end change nothing; drag onto a row; a drop with no drag of this list in flight is left to the host; a single level's handle is aria-disabled and out of the tab order.

Migrated (the behaviour they pinned is replaced by this card):

  • ListView.sortFieldFallback.test.tsx › "restores the two-level default … after a header click flattened it" → "… after a header pick changed it": the pick now yields three levels, reset still restores the declared two. "CONTROL — the header click itself still replaces the whole sort array" → "CONTROL — a header pick over a two-level sort puts its column first and drops no level".
  • listConditions.test.tsx › "… and flip on click" → "… and open the sort levels on click without flipping".
  • ListView.conditionRow-35549.test.tsx › the Reset case made the sort differ by flipping the chip; it now removes the chip instead.
  • data-table-header-column-menu-34794.test.tsx and app-shell/…/DataPillar.recordsTab-34794.test.tsx: the menu's entries are read as menuitem, not button.
  • list-builders-phone-width-29074.test.tsx: the row's phone grid gains the handle column.
  • sort-builder-disabled-entry-11943.test.tsx, ListView.sortRemovableOnly-11943.test.tsx, ListView.sortPersistLeak.test.tsx, ListView.withheldFields-34901.test.tsx: a builder row now holds two buttons, so its remove control is found by name.
  • clickableNonControlCensus-13461.test.ts: the column menu's div · stopPropagation wrapper is gone (repaired), so its declared row is deleted.
  • ui/e2e/list-condition-row-35549.spec.ts (Build & E2E UI) › the sort case: the chip is read as sort-chip-open-amount; "a header click shows as a chip" → "a header menu pick shows as a chip": a header click opens column-context-menu and leaves the sort empty, then Sort descending gives amount:desc and its chip. The same case now also opens a chip's panel and drags the second level's handle onto the first row with Playwright dragTo (a real pointer drag in Chromium).

Voided: none.

Verification

  • vitest (from ui/), base of the run fc35f473 plus the migrations: packages/components, packages/plugin-list, packages/plugin-grid whole — 971 files, 9291 tests: 12 failed, all old pins listed under Migrated; after the migrations the 11 affected files re-run: 11 passed, 103 tests, 0 failed (plus sort-builder-reorder-35876 after its host fix, 6/6). packages/app-shell whole: stopped after 53 minutes on the shared box without a summary → NOT MEASURED locally; CI's UI test job runs it. The app-shell file this PR migrated (DataPillar.recordsTab-34794) and defaults-maps-mirror-en-pack pass on their own.
  • After the CI fix and the L1-b rework (663cd467): the 5 affected unit files 79/79 passed; ui/e2e/list-condition-row-35549.spec.ts under Playwright chromium (local config without the preview web server): 3/3 passed.
  • eslint on every changed .ts / .tsx file: 0 errors (warnings only, pre-existing kinds).
  • node scripts/pm/dispatch-gates.mjs --commands: 42 derived commands, run one by one on c3e4d776: 40 exit 0; the other two re-run on 663cd467: pnpm --dir ui exec vitest run scripts/ exit 0 (172 files, 5111 tests passed, 2 skipped), pnpm check:type-check-debt exit 0.
  • CI on c3e4d776 failed Build & E2E UI, Type Check UI and Lint UI on one error: DropdownMenuContent does not type onOpenAutoFocus (TS2322 in the @object-ui/components declaration build). Fixed in 663cd467 (the first entry is focused from an effect). Locally on that tree: the @object-ui closure build (turbo run build --filter=@object-ui/plugin-list^... --filter=@object-ui/plugin-grid^..., which runs the components declaration build with fail-on-type-errors) exit 0; pnpm run type-check in components, plugin-grid, plugin-list, i18n: exit 0 each.
  • CI on 663cd467: every check green but Test UI (16/16): packages/i18n/src/__tests__/zh-hant-generated.test.ts — zh-Hant.ts is generated from zh-Hans.ts and the hand-written reorder string differed from the converter's (拖曳 vs 拖動). Regenerated with pnpm --filter @object-ui/i18n gen:zh-hant in 046c89d3; that file 11/11 and packages/i18n whole 1957 passed locally.
  • L2 should-fixes S1 and S2 and its nit, in 7dcbb2e8: packages/components, packages/plugin-list and packages/plugin-grid whole under the verify lock — 971 files passed (1 skipped), 9274 tests passed, 24 skipped, 0 failed. ui/e2e/list-condition-row-35549.spec.ts with the new handle drag step, Chromium: 3/3. Studio header tests (StudioDesignSurface.leafColumnSelection-12725, DataPillar.recordsScroll-35061, DataPillar.recordsTab-34794): 21/21. type-check in components: exit 0; eslint on the changed files: 0 errors.
  • NOT MEASURED: the handle drag in Firefox and WebKit (the container has Chromium only). The handle is now a span like the line-items grid's handle; Chromium's real dragTo passes on it.
  • node scripts/pm/overlap-check.mjs: VERDICT clean (merges cleanly with origin/main 8c18a362; no open PR shares a file).
  • Changed lines under the 3000 threshold (dispatch-gates: 859 at 457c7b3c, before docs).
  • Browser, before / after — examples/app-showcase (objectstack dev --seed-admin, own port and DB) with the ui/apps/console Vite dev server over it, headless Chromium 1400×900, zh-CN, the task list (showcase_task). Before = main 8c18a362; after = this branch's ui/ sources over the same server.
    • Before: with three levels (priority, status, due date), a click on the priority header left priority desc alone, and a reload kept it; a click on the sort chip flipped it to asc at once.
    • After, from no sort: Sort → status, Sort → due date (two levels). A click on the priority header opens the menu, levels unchanged; Esc closes, unchanged. Menu 升序排列 on priority → priority, status, due date. Menu 降序排列 on status → status desc, priority, due date (still three). Reload keeps it. A click on a sort chip opens the panel with three rows and three handles, nothing changes. ArrowUp on the second handle → priority first, the header marks follow, and a reload keeps it. A mouse drag (Playwright dragTo) of the third level onto the first moves it there and the marks follow. Keyboard: focus the progress header, Enter opens the menu, ArrowDown + Enter → progress desc first, the other three after it.
    • Not measured: Safari / WebKit (no WebKit build in the container); touch.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the changed files: see Verification)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (the 维护者速读 block and the maintainer's quotes are Chinese by the maintainer's standing rule)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTXY4rajwZcQmpLxS2

…rt; sort chip opens the sort panel

Co-Authored-By: Claude <noreply@anthropic.com>
…rtBuilder reordering

Co-Authored-By: Claude <noreply@anthropic.com>
…lace and the one-button builder row

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — REWORK (L1-b)

Head-sha: c3e4d7765d4143583bee89f90716d9ecefd365f7 · read 2026-11-20T17:58Z

维护者速读

  • 改法本身对:列表页点列头出菜单、多级排序不再被清掉、点排序标签打开面板、面板里能拖动调先后,都和卡一致;只在列表页生效,其他表格不变。
  • 退回只因一处漏改:一个浏览器端到端测试还按旧行为写(点列头直接排序、旧的标签编号),合进去会让 CI 变红。改完测试即可,不需要改功能。
  • 发版级别 patch 是对的(仓库规则:不改元数据协议的新增导出走 patch)。

Must-fix

  1. ui/e2e/list-condition-row-35549.spec.ts is not migrated (runs in Build & E2E UI: ui/playwright.config.ts testDir: './e2e', ci.yml test:e2e --project=chromium). At this head it reads behaviour the PR replaces:
    • L329-330: getByTestId('sort-chip-toggle-amount'); the chip's testid is now sort-chip-open-<field> (ListConditionControls.tsx).
    • L362-366: "a click on a column header sorts, and the row shows it as a chip": getByRole('columnheader', { name: /Amount/ }).click() then expects sort-chip-amount and sortNow()[0] amount:. On this list the header now opens the menu and does not sort.
      Migrate both in this PR (the header step becomes header click → menu → Sort ascending/descending), and list the spec under Migrated in the body. git grep over ui/e2e finds no other spec reading the old chip testid or a header-click sort.

Checked and fine

  • Face (l1-face.mjs --pr 35909): shape, Fixes #35876, no keyword on another card, changeset covers all four packages, Clause-②: yes (widening) / Metadata-protocol: none. Checks at read: 13 success · 10 expected skip · 0 failed · 19 pending (floor jobs not yet reported).
  • Semver (seat asked): patch is right. AGENTS.md changeset rule: "The level follows the kind alone: a kind takes at least minor …, none takes patch; a non-protocol change, widening or breaking, ships patch". Metadata-protocol: none ⇒ patch on all four.
  • Seat routing: header menu only where a host mounts GridHeaderMenuProvider; ObjectGrid mounts it from the runtime headerMenu prop; ListView passes it only in the same branch as cellSelection: true (ruling 7035276698 reach). Without the provider the header keeps click-to-sort (control test in data-table-header-menu-35876.test.tsx). Studio's Records tab, which draws through ListView, keeps its field-select click: StudioDesignSurface.tsx:7836 takes the header click in the capture phase and stops it before the header handler.
  • Merge rule in ListView.handleHeaderSort: picked.length === 1 && currentSort.length >= 2 ? [picked, ...rest without that field] : picked matches the card's four cases (0 or 1 level ⇒ replace; ≥2 ⇒ first, others kept in order; existing column moves up with the new direction). The table still hands back one column (applySort under manualSorting).
  • Sort chip: opens sortPanelBody in a popover, no direction change; toggleSortOrder (internal conditionModel.ts, not exported from the package entry) removed with its only caller.
  • For the phone cards section present: names SortBuilder (fields, value: SortItem[], onChange) as the shared panel content, reads/writes nothing itself, so a phone sheet can hold a staged copy for ✓-to-apply without a second save path (ruling 7045325067). Satisfies constraint 3/5.
  • Regions: ListView.tsx hunks are handleHeaderSort, one ConditionChipRow prop, and the grid host-props line; data-table.tsx hunks are the header cell and the column menu. Nothing in the toolbar (列表工具区重排:对象名并进视图行,「选项」改成视图名旁的「视图设置」并直接摊开列清单,筛选和排序的入口并到标签行,排序并成一个标签 #35878), footer (列表底部计算行:常驻一行,用户点列底下的格子选计算(合计、平均、计数等),存到视图上 #35702) or cell-save (行内编辑保存:逐格自动保存,失败保留并整行一起发,可撤销,只更新当前行;去掉保存栏和行尾按钮 #35685) regions. The grid host-props line sits beside 行内编辑保存:逐格自动保存,失败保留并整行一起发,可撤销,只更新当前行;去掉保存栏和行尾按钮 #35685's cellSelection; a textual neighbour only.
  • i18n: sortBuilder.reorder in all 11 locales.
  • Sentence-by-sentence: the changeset body and the new plugin-grid.mdx paragraph match the diff (header menu entries and keys, merge rule, ↑1/↓2 marks, chip opens the panel, handle drag and ArrowUp/ArrowDown, new public surface, menu now role="menu" everywhere it opens).
  • Not copied from Twenty/Attio: built on the repo's Radix DropdownMenu and existing SortBuilder.

Nits (no rework needed; fix in the same push if convenient, else drop)

  • N1. A non-sortable header opens nothing on a click; Hide is then only on right-click. The card's "点列头出菜单:升序、降序、隐藏这一列" is met for sortable columns; say so in the body's Acceptance notes.
  • N2. renderSortLevels is optional, and without it the chip is a <button> with no click action. Its only host passes it; making it required (or drawing a non-button) removes the inert state.
  • N3. conditionTranslations.ts:71 still carries the fallback 'listConditions.chips.toggleSort': 'Reverse {{label}}', now unread. Keeping the published locale key is right; the internal fallback can go.
  • N4. The header is now a tab stop (tabIndex 0) with no focus-visible ring class; it relies on the browser outline.

Owed before landing

  • The dev's NOT MEASURED items (app-shell vitest, four-package type-check, vitest scripts/, check:type-check-debt) are answered by CI on the next head; every check green there.
  • L2: Clause-②: yes (widening) ⇒ TIER_DEFAULT L2 on the declaration face, run by the seat on the green head. L1 does not replace it.
  • Delta read: I read only the delta at the next announced head.

…row e2e spec

DropdownMenuContent does not type onOpenAutoFocus, so the declaration build
failed. A keyboard-opened column menu now focuses its first entry from an
effect once the content mounts.

The condition-row e2e spec read the old sort chip testid and a header click
that sorted; the header now opens the column menu and the entry chosen there
sorts. Review nits: a sort chip's panel is a required prop of
ConditionChipRow, the unread toggleSort fallback is dropped, and a header
that opens the menu shows a focus ring.

Co-Authored-By: Claude <noreply@anthropic.com>
…rder key

Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b), CI red owed

Head-sha: 663cd467bf (delta c3e4d776..663cd467, one commit) · read 2026-11-20T18:30Z

维护者速读

  • 上一轮退回的那个浏览器测试已改好,四条小建议也都改了,代码这一轮没有新问题。
  • 但 CI 有一项红:繁体中文语言包是由简体自动生成的,本 PR 手写了一条繁体文案,和生成器的输出对不上。重新生成一次即可,不影响功能。修好、CI 全绿之前不能落地。

Delta read

  • Must-fix from 7046835312, done: ui/e2e/list-condition-row-35549.spec.ts reads sort-chip-open-amount, and the header step is now header click → column-context-menu visible → sortNow() still [] → menuitem Sort descending (en table.sortDesc) → chip shown, sort ['amount:desc']. Build & E2E UI success at this head.
  • TS2322 fix: onOpenAutoFocus dropped from DropdownMenuContent; a keyboard-opened menu focuses its first menuitem from an effect on contextMenu in a requestAnimationFrame, cancelled on cleanup. The keyboard flag is reset to false by every pointer opener (header click, right-click, caret), so a mouse-opened menu is not moved. Type Check UI and TypeScript Type Check success.
  • N1–N4: N2 renderSortLevels required and the inert branch removed; N3 listConditions.chips.toggleSort fallback removed from conditionTranslations.ts (published locale keys kept); N4 focus-visible ring on a header that opens the menu; N1 is a body note.

CI at this head (blocks landing)

  • 52 success · 12 expected skip · 2 failed: Test UI (16/16) and its roll-up Test UI. Failing step: packages/i18n/src/__tests__/zh-hant-generated.test.ts › "src/locales/zh-Hant.ts is byte-for-byte what the generator writes from its zh-Hans source": src/locales/zh-Hant.ts is stale: run \pnpm --filter @object-ui/i18n gen:zh-hant` and commit src/locales/zh-Hant.ts. This PR adds sortBuilder.reordertozh-Hant.tsby hand; that file is generated fromzh-Hans.ts. Caused by this PR (present since c3e4d77; I missed it in the first read). Fix: run the generator and commit its output; the zh-Hantstring becomes whatever the converter makes of拖动以调整先后`.
  • A convergence red, not a REWORK: the original dev patches it. The next head, if it only regenerates zh-Hant.ts, I read as a regen-only delta.

Still owed

  • Every check green on the landing head.
  • L2 TIER_DEFAULT (Clause-② yes, widening) on the green head, run by the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Flake reading · 2026-11-20T18:40Z · Test Core (2/10) (job 136488184814, run 44793404099, head 046c89d3) failed after its tests finished: the log shows @objectstack/rest 425 files / 8671 tests passed and Attested: test-2-of-10 ran to completion with every step green, then the shard-attestation upload step failed with Failed to CreateArtifact: Unable to make request: ECONNRESET. The failure is the artifact upload, not a measurement; the PR touches no core path and the same shard passed on 663cd467. The seat re-runs the run's failed jobs once (rerun-failed.mjs) when the run completes; a second failure is read as real.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b), regen only

Head-sha: 046c89d32a (delta 663cd467..046c89d3, one commit) · read 2026-11-20T18:53Z

维护者速读

  • 这一轮只重新生成了繁体中文语言包里的一行(「拖曳」→「拖動」),上一轮的红已修好,界面相关检查全部通过。
  • 剩下的一项红是 GitHub 自身的网络抖动(测试已全部通过,上传结果时连接被重置),和本 PR 无关;重跑那一项变绿后即可走落地。

Delta read

  • ui/packages/i18n/src/locales/zh-Hant.ts, one line: reorder: '拖曳以調整先後' → '拖動以調整先後', the gen:zh-hant output for zh-Hans 拖动以调整先后. Nothing else moved. The record 7047501355 carries the rest of the PR.
  • Test UI and all 16 Test UI (n/16) shards success at this head (the zh-hant-generated red from 663cd46 is gone); Build & E2E UI, Type Check UI, Lint UI, Lint & Repo Gates, TypeScript Type Check success.

CI at this head

  • 52 success · 12 expected skip · 2 failed: Test Core (2/10) (job 136488184814) and its roll-up Test Core. Not a test failure: the job's own line reads "Attested: test-2-of-10 ran to completion with every step green", then actions/upload-artifact fails with "Failed to CreateArtifact: Unable to make request: ECONNRESET". The PR touches no Core package. A re-run of the failed jobs is owed before landing (the seat's call); every check green on the landing head.

Still owed

  • L2 TIER_DEFAULT (Clause-② yes, widening) on the green head, run by the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-20T18:55Z. The brief handed to the isolated declaration-face reviewer for PR #35909 (owed by the PR's Clause-②: yes (widening) line: GridHeaderMenuProvider / useGridHeaderMenu exported from @object-ui/components, the headerMenu prop on ObjectGrid, and the sortBuilder.reorder label). The record follows as its own comment. Note on the check-runs: Test Core (2/10) failed on an artifact upload (ECONNRESET) after its tests passed; the seat re-ran the failed jobs once (flake reading on the PR) and adopts the record only after that re-run is green.

Contract review brief — PR #35909 @ 046c89d32ac447621e3e3728a1591f712280a7c3 (card #35876)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35876: its body and EVERY comment (rulings and earlier records included)
· PR #35909: its body, its file list, and the net diff against main at 046c89d32ac447621e3e3728a1591f712280a7c3
· the check-runs on 046c89d32ac447621e3e3728a1591f712280a7c3: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35909/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 046c89d32ac447621e3e3728a1591f712280a7c3
Local-runs: none

Inputs read: card #35876 (body and all three comments: claim 7045047594, triage 7045201347, dev report 7047105023), PR #35909 (body, six commits, 37 files), the net diff 8c18a362..046c89d3, and the check-runs on 046c89d3 as they stood at 2026-11-20T19:00Z.

① Derived judgments

Gate verdicts at this head: 52 success, 12 skipped, 0 failed, 1 in progress. The one in progress is Test Core (2/10) attempt 2 (job 136499950708, run 44793404099, started 18:55:12Z), the re-run of attempt 1 (job 136488184814), which failed on its artifact upload (ECONNRESET) after its tests passed. Its roll-up Test Core has not reported on attempt 2. The Test Core re-run is not finished, so this record does not cover it: the PASS below holds only once that job and Test Core are green. Every UI family is green on this head: Test UI and all 16 shards, Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, the Type Check · and Lint · families, Check Changeset, Spec property liveness, Governed Surface Queue Guard, Check Documentation Links and Build Docs.

Public-surface changes:

  • @object-ui/components exports GridHeaderMenuProvider and useGridHeaderMenu (ui/packages/components/src/index.ts, new context/gridHeaderMenu.tsx). Additive. It is a boolean context that defaults to false, so a table outside a provider keeps click-to-sort (data-table.tsx onClick: headerOpensMenu ? openHeaderMenu : handleSort). The CONTROL case in data-table-header-menu-35876.test.tsx pins this. Right.
  • @object-ui/plugin-grid ObjectGrid takes a new optional headerMenu prop. It is destructured as hostHeaderMenu and read only as hostHeaderMenu === true, the same host-only pattern as cellSelection. No schema key reaches it, so Metadata-protocol: none holds for it. Right.
  • @object-ui/i18n adds sortBuilder.reorder in all 11 locales. Each one sits in the sortBuilder block after removeSort. zh-Hant is the generator's output (拖動以調整先後), and the zh-hant-generated red from 663cd467 is gone. The SortBuilder fallback table carries the same key. Right.
  • The data-table column menu changes behaviour for every host, not only the list page. It is now a Radix DropdownMenu (modal={false}, entries role="menuitem", arrow keys work, outside close on pointer-down) wherever it opens: right-click, the Studio caret (Studio 数据栏:「添加字段」常驻工具栏,点列头改字段,名称列排第一,字段属性面板先显示名后内部名 #34794), and the header under the provider. The entries and their predicates are the same (isColumnSortable gates the sort entries, and Hide always shows), and data-testid="column-context-menu" is kept. A consumer that queried the entries as button breaks. The PR migrates the in-repo readers (data-table-header-column-menu-34794, app-shell DataPillar.recordsTab-34794), and the changeset names the change. This is a DOM-role widening, not a removed API. Right.
  • SortBuilder (@object-ui/components) draws one more <button> per row, the handle, and moves to a three-column grid below sm. A reader that took "the button in the row" now gets two. The in-repo readers that did this are migrated to read by name (11943, 34901, sortPersistLeak, 29074). Additive in behaviour. Right.
  • Internal only, not on a package entry: toggleSortOrder is removed from conditionModel.ts. Its only caller was the chip, and plugin-list/src/index.tsx exports nothing from conditions/. ConditionChipRow.renderSortLevels becomes required, which is internal for the same reason. The chip's testid changes from sort-chip-toggle-* to sort-chip-open-*, and the e2e spec list-condition-row-35549 is migrated. The published listConditions.chips.toggleSort key stays in the locales and is no longer read; keeping it is right, because removing it would be a narrowing. Right.

Accept-set changes, against the card:

  • ListView.handleHeaderSort merges with picked.length === 1 && currentSort.length >= 2 ? [picked[0], ...currentSort.filter(f !== picked)] : picked. I checked it against the card's four acceptance cases. Two levels plus a new column gives three levels with the new column first. Two levels plus 「会议地点」 descending gives two levels, 会议地点 descending first. No sort gives that column alone. One level is replaced. All four hold. currentSort is now in the callback's dependency list, so the merge cannot read a stale sort. Ids of kept levels are preserved, and the save path (emitSortChange, setServerPage(1)) is unchanged, which meets the card's 「不改排序的保存方式」. Right.
  • The table still hands back one column through applySort under manualSorting. Because a right-click sort goes through the same handleHeaderSort, it merges too. That is consistent with the card. Right.
  • The header menu reaches exactly the grids ListView draws: headerMenu: true is set only in the viewComponentSchema.type === 'object-grid' branch, beside cellSelection: true. That is the seat's routing in claim 7045047594. Right.
  • A sort chip opens a popover holding sortPanelBody and calls no onSortChange. The chip's ×, its drag and its Alt+Arrow moves are unchanged. Right.
  • SortBuilder reordering: moveItem refuses an out-of-range index or a no-op move, and ArrowUp and ArrowDown on the handle move the row and keep focus on it. Drag events stop at the builder only while one of its own drags is in flight (dragFrom.current !== null), so a host drop target still works for a foreign drag. The handle is disabled on a single level. Right.
  • The ↑1 / ↓2 header marks are untouched. Right.
  • A non-sortable header (sortable: false, a masked column) opens nothing on a click. The card's acceptance reads 「两级排序下点任意列头:出菜单」 (any header opens the menu), so this differs from the card's words. The body's Acceptance notes disclose it. See should-fix S1.
  • Docs: the new paragraph in content/docs/frontend/plugins/plugin-grid.mdx matches the diff (the menu entries, the keys, the merge rule, the marks, the chip and the handle), and it names headerMenu as a component prop, not a schema key. Right.

② Semver level

The changeset .changeset/35876-list-header-menu-multi-sort.md sets patch on @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-list and @object-ui/i18n. Those are exactly the four published packages whose source the diff moves. The app-shell and e2e edits are test-only, and content/docs does not publish. Metadata-protocol: none is right, because nothing a metadata author can write changes: headerMenu is a runtime prop, and the header and chip behaviour reads no new key. Under AGENTS.md's changeset rule, the level follows the kind alone, and none takes patch. So patch is right. Check Changeset is green.

Clause-②: yes (widening), correct. The diff adds two exports, one optional prop and one locale key, and removes or renames nothing on a package entry. The only removals (toggleSortOrder, the toggleSort fallback string) are internal to plugin-list. The behaviour changes (the header opening a menu on the list page, the column menu becoming a menu) are additive or opt-in at the published surface. The body and the changeset carry the same two lines.

③ Boundary flags

  • Dev open_questions: the list is empty. Nothing is owed.
  • Dev out-of-scope finding (class c): docs/qa/platform-checklist has no item that drives the header menu or the level reorder. The dev noted it and did not file it. I escalate it to the seat: file it as a follow-up card, or rule it covered by records-forms.adhoc-filter-sort-builder. It does not block this PR.
  • Dev NOT MEASURED, app-shell vitest: answered by CI. Test UI and all 16 shards are green on this head.
  • Dev NOT MEASURED, Safari/WebKit and touch; Firefox is not named at all. The reorder handle is a <button draggable>, and only Chromium was measured. Firefox has a long history of not starting an HTML5 drag from a button element. See should-fix S2.
  • Phone cards 专题:手机端重做(登录后进应用、应用首页就是全部菜单、底部固定首页/通知/审批、列表工具行和面板;结构参照 Attio 手机端) #35880 and 手机端排序、筛选、切换视图的面板:几乎满屏,左上「×」放弃、右上「✓」才生效 #35884: the body says a phone sheet can reuse SortBuilder. Its reorder is HTML5 drag plus the arrow keys, and neither works on a touch screen. I pass this to those cards as a boundary note. It is out of this card's scope (「手机宽度下没有列头,本卡不涉及」) and does not block this PR.
  • Earlier records: L1-b's must-fix (7046835312, the e2e spec) is done at 663cd467. Nits N2 to N4 are done. N1 became a body note only; it is the same point as S1. The zh-Hant red (7047501355) is fixed at this head (7047967734).
  • SQL push-down (Prime Directive 5): no finding. The sort still reaches the server as currentSort on the grid's data-source block. The merge reorders an array the list already holds and fetches nothing. SortBuilder writes only through onChange. The diff adds no id materialisation and no in-app join.

Must-fix: none.

Should-fix:

  • S1. A non-sortable header opens no menu, but the card's acceptance says 「点任意列头:出菜单」. Either open a Hide-only menu on a non-sortable header under the provider, or get the seat or maintainer to rule the disclosed reading acceptable. The sort is still unchanged on that click, which is what that acceptance line protects.
  • S2. Measure the mouse drag of the SortBuilder handle in Firefox (and WebKit if one is available). If Firefox does not start the drag from the <button draggable>, make the handle a non-button element with role="button", or put draggable on a wrapper. Keyboard reordering is not affected.

Nit: Hide column removes the header the menu was opened from, so the menu's close-focus target is detached and focus falls to the body.

Implemented-by: claude/project-thread-agxx3w
Reviewed-by: L2 sub-agent of session_01L6bhgUkbQqRUUFSiu2HGob (isolated, TIER_DEFAULT)

VERDICT: PASS

…raggable sort handle

Under GridHeaderMenu a header that does not sort now opens the column menu
with Hide column alone, and its click still changes no sort. Hide column
moves focus to the header beside the hidden one. The sort builder's handle
is a span with role button and a tab stop, since Firefox starts no HTML5
drag from a button. The condition-row e2e spec drags a handle in a chip's
panel.

Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 7dcbb2e · read 2026-11-20T19:25Z · delta 046c89d..7dcbb2e only (one commit) · L1 only, never an L2

维护者速读

Checked

  • S1 (data-table.tsx header region only): headerMenuOn is now true for every header under the provider; the menu content still gates the two sort entries on the same isColumnSortable predicate (sortable:false / masked → Hide column alone); the click falls back to handleSort only without the provider, so tables outside GridHeaderMenu keep click-to-sort exactly as before. New tests: non-sortable header is a tab stop with aria-haspopup="menu", menu = ['Hide column'], no onSortChange.
  • Focus nit: hideColumn moves the return-focus target to the next (else previous) header with a data-column-key and a tab stop, only when the menu came from the header being hidden; right-click and the design caret keep their own return target. Test drives it from the keyboard.
  • S2: the SortBuilder handle is a span role="button", tabIndex 0 (−1 with one level), aria-disabled replaces disabled, aria-disabled: classes replace disabled:, focus-visible ring added; drag and ArrowUp/ArrowDown handlers unchanged. Unit test asserts not-a-<button>; e2e 35549 adds a real Chromium dragTo of a panel handle. Firefox/WebKit not measured (body says so: Chromium-only container); the change is the known Firefox cause, so I take it as reasoned, not measured.
  • Changeset and plugin-grid.mdx sentences added for the Hide-only menu: true against the code. Body: S1/S2 described, "For the phone cards" now names the touch-reorder gap for 手机端排序、筛选、切换视图的面板:几乎满屏,左上「×」放弃、右上「✓」才生效 #35884, Verification pinned to 7dcbb2e8.
  • No hunk outside 列表排序:已有多级排序时点列头会把原来的排序全部清掉;点排序标签会直接把方向反过来 #35876's regions; no locale key touched (zh-Hant trap n/a).

Nit (non-blocking)

Owed

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-20T19:28Z. The DELTA brief handed to the same isolated declaration-face reviewer for PR #35909 (delta of its record 7048122153 on 046c89d3; the first brief is 7048020324). The record follows as its own comment.

Contract review brief — PR #35909 @ 7dcbb2e8947c4fd8366cb623198658e6b2f87399 (card #35876)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35876: its body and EVERY comment (rulings and earlier records included)
· PR #35909: its body, its file list, and the net diff against main at 7dcbb2e8947c4fd8366cb623198658e6b2f87399
· the check-runs on 7dcbb2e8947c4fd8366cb623198658e6b2f87399: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35909/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7dcbb2e8947c4fd8366cb623198658e6b2f87399
Local-runs: none

This is a delta record. It covers 046c89d3..7dcbb2e8, one commit (7dcbb2e89, 7 files, +71 −29), read against record 7048122153 on 046c89d3. Everything outside the delta stands as that record judged it. I read the PR body as it stands and the check-runs on 7dcbb2e8 at 2026-11-20T19:28Z.

① Derived judgments

Gate verdicts on this head: CI is still running. 15 success, 12 skipped, 34 in progress, 0 failed. Among the success checks are Check Changeset, Spec property liveness, Governed Surface Queue Guard, Check Documentation Links, Type Check · workspace and Type Check · debt ledger. One PR-body guards run is cancelled, and a later run of the same check is green. Still in progress:

  • Test UI and all 16 shards
  • Test Core shards 1 to 3
  • Build & E2E UI, Live E2E UI and Build Docs
  • Type Check UI, Type Check · consumer gates and Type Check · source gates
  • Lint UI and every Lint · job

None of those running checks is answered yet. The PASS below holds only once every check on 7dcbb2e8 is green.

  • S1, closed. headerMenuOn is now headerOpensMenu alone. Under the provider, every header gets tabIndex 0, aria-haspopup="menu", aria-expanded, the keyboard opener and the pointer cursor. The click opens the menu when headerMenuOn is true and otherwise sorts only if isColumnSortable. So without the provider, a non-sortable header still does nothing and a sortable one still sorts, and the CONTROL test is unchanged. The menu's sort entries and their separator are still gated by contextMenuColumn && isColumnSortable(contextMenuColumn). A sortable: false or masked header therefore offers Hide column alone, and that click calls no onSortChange. The new test pins this, and it meets the card's 「两级排序下点任意列头:出菜单」 for every header. The changeset, plugin-grid.mdx and the body's Acceptance notes now say "a column that does not sort offers hide alone", which matches the code.

  • S2, closed in the code. Firefox and WebKit are still not measured. The handle is now a span with role="button". It takes tabIndex 0 when there are two or more levels and -1 on a single level, aria-disabled on a single level, and draggable when there are two or more levels. Its drag and keyboard handlers are unchanged, and handleRefs is retyped to HTMLElement, so focus stays on the moved handle. It keeps its accessible name, and the unit test now asserts that its tag is not BUTTON. A single level drags nothing (draggable=false), and moveItem refuses an out-of-range move, so a disabled handle cannot reorder anything. The e2e spec list-condition-row-35549 adds a real Chromium dragTo of the second handle onto the first row (['stage:asc','amount:desc'] becomes ['amount:desc','stage:asc']), and it is still running on this head. The body says plainly that the drag is not measured in Firefox or WebKit. The cause my record named, a drag from a <button>, is gone. The disclosed gap does not block this PR.

  • Nit, closed. hideColumn now moves the return-focus target to the neighbouring th (the next one, else the previous). It does this only when that neighbour carries data-column-key and is a tab stop, and only when the menu came from the header being hidden. That covers a header click, a right-click and the Studio caret, because the caret's closest('th') is the header. Otherwise the target becomes null and focus behaves as it did before. The ref is set before setContextMenu(null), so the unmount's onCloseAutoFocus reads the new target. The keyboard test pins focus landing on the status header.

  • Public surface. Nothing new is exported or added as a prop or key. Two published-DOM changes come with the delta:

    • The SortBuilder handle is no longer a <button>. A reader that finds it by role and name still finds it; a reader that used toBeDisabled or a button tag selector does not. The in-repo test is migrated.
    • Under the provider only, non-sortable headers become tab stops that open a menu.

    Both are additive or opt-in. Right.

  • New nit N2. Under the provider, the auto-pinned row-actions header (_actions, sortable: false, objectGridActionsColumn.tsx) is now a tab stop. A click on it opens a menu holding Hide column alone. Right-click already offered that Hide before this PR, and Hide is not stored, so this follows the card's 「任意列头」 and changes no contract. If the seat prefers, the _actions header can be left out.

② Semver level

Unchanged and still right. The changeset sets patch on @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-list and @object-ui/i18n, with Metadata-protocol: none. The delta moves only components source plus its tests, the docs and the changeset text, so no package is added or dropped. Clause-②: yes (widening) is still correct. The delta removes and renames nothing on a package entry, and its behaviour change is behind the host opt-in. The changeset body was edited to match the code, and both declaration lines are unchanged in the changeset and the PR body.

③ Boundary flags

  • The phone cards' boundary note from record 7048122153 is answered. The body's "For the phone cards" section now says SortBuilder reorders by mouse drag and by the arrow keys only, with no touch support. It says 手机端排序、筛选、切换视图的面板:几乎满屏,左上「×」放弃、右上「✓」才生效 #35884 needs its own touch affordance that writes through the same onChange. That hands the work on correctly; nothing is owed here.
  • Firefox and WebKit are not measured, and the body discloses it (S2 above). This does not block the PR.
  • The platform-checklist follow-up from the earlier record is still escalated to the seat, unchanged.
  • SQL push-down (Prime Directive 5): no finding. The delta touches header focus and menu gating, the handle element and docs. It touches no data path, materialises no ids and adds no in-app join.

Must-fix: none.
Should-fix: none. S1 and S2 are closed.
Nits: the earlier nit is closed. N2 (the row-actions header opens a Hide-only menu) is optional.

Implemented-by: claude/project-thread-agxx3w
Reviewed-by: L2 sub-agent of session_01L6bhgUkbQqRUUFSiu2HGob (isolated, TIER_DEFAULT)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption and landing · 2026-11-20T19:46Z · The seat adopts the isolated declaration-face L2 delta record 7048693262 on head 7dcbb2e8 (served at TIER_DEFAULT, owed by Clause-②: yes (widening): GridHeaderMenuProvider / useGridHeaderMenu from @object-ui/components, the headerMenu prop on ObjectGrid, the sortBuilder.reorder label), PASS with no must-fix or should-fix; it closes S1, S2 and the focus nit of the earlier record 7048122153 on 046c89d3 by id. Delta brief 7048683710 (first brief 7048020324). Nit N2 (the row-actions header opens a Hide-only menu) is carried with no card. Firefox / WebKit drag is not measured (Chromium-only container), as the PR body says.

L1-b REWORK 7046835312 at c3e4d776, delta ACCEPTs 7047501355, 7047967734 and 7048634525 at 7dcbb2e8 (this head). The earlier Test Core (2/10) red on 046c89d3 was an artifact-upload ECONNRESET after its tests passed (flake reading on this PR; re-run once, green). check-governed-merges --pr 35909 reads NOT governed, 999 changed lines. landing-k reads K = 1. On this head 53 check-runs are success and 12 skipped; the one cancelled run is a PR-body guards run superseded by a body patch, whose re-run is success. The seat readies this PR and arms auto-merge in this same stroke. The PR carries Fixes #35876. Follow-up: checklist items for the header menu and level reorder, #35922.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 19:46
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit dea68e9 Nov 20, 2026
66 of 67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-agxx3w branch November 20, 2026 20:08
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…-level reorder (objectstack-ai#36415)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbGyo1s5XDjcEx7u8WDqbFTx)_
Fixes objectstack-ai#35922

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户无感:只是测试清单多了一条列表页检查项(点列标题弹菜单、多级排序调先后),并改正了一句过时的步骤说明。
- 属于列表页重做这一组工作,补上了列标题菜单功能上线后测试清单里缺的那一块。
- 出错只会让测试人员按错的步骤操作,不影响任何用户,可以直接撤回。
- 无

## What changes

- New item `records-forms.list-header-menu-and-sort-levels` (P2,
browser, since v18.7), placed right after
`records-forms.adhoc-filter-sort-builder`. It drives the two things
objectstack-ai#35876 added to the list page (PR objectstack-ai#35909), read from the shipped source
at base 4e55e4e:
- a click on a column header opens the column menu (Sort ascending /
Sort descending / Hide column) and changes no sort; a second click shuts
it;
- the entry chosen is the server sort (`sort=-due_date`), and over two
levels or more the picked column becomes the first level while every
other level keeps its place (`withHeaderSortPick`);
- keyboard: Enter, Space or ArrowDown on the focused header opens the
menu with focus on the first entry; Esc shuts it without touching the
sort and gives focus back to the header;
- a header that does not sort (showcase_task's Project, a master_detail
column) opens a menu with Hide column alone;
- a click on the sort chip opens every level in one panel and never
flips a direction;
- the sort panel's handles reorder the levels by ArrowUp / ArrowDown
(the handle keeps focus, nothing happens past either end) and by drag; a
single level's handle is disabled.
It cites the four pins objectstack-ai#35909 added as `automated` and an acceptance
clause, and anchors `source` to `GridHeaderMenuProvider`,
`openHeaderMenu`, `withHeaderSortPick`, `handleHeaderSort` and
`moveItem`.
- `ux-conventions.write-feedback` revision 17: `variants[8]` said a
click on a Studio Records grid header "sorts the column (QA run
objectstack-ai#33914)". On main that click selects the field and opens its properties
and never sorts; sort and hide are in the header's 'Sort and hide' caret
menu. This was made false by objectstack-ai#34794 (Studio's capture-phase header
handler), not by objectstack-ai#35876; objectstack-ai#35876 only turned that caret menu into a
`role=menu`. No clause changed.

## Tests

No code changed. `pnpm check:platform-checklist` (self-tests and the
ledger) passes at 0e001f0, and the new item's seven `#symbol` anchors
resolve (1754/1764 before, 1761/1771 after).

## Acceptance notes

- The card listed "add to the existing sort" as a menu entry. The
shipped menu has no such entry: with two levels or more a pick puts the
column first and keeps the other levels. The item follows the code.
- The record page's related list also opens the header menu
(`headerMenu: true` in `ui/packages/plugin-detail/src/RelatedList.tsx`).
No checklist item drives that host. Noted here only.
- No live run was made. The item is authored from source, as its history
row says.

## Verification

Files to read first, riskiest first:
1. `docs/qa/platform-checklist/areas/records-forms.json`: the new item's
`acceptance[2]` (the three-level request strings).
2. `docs/qa/platform-checklist/areas/ux-conventions.json`:
`variants[8]`'s rewritten last clause.

Two-minute check: `node scripts/checklist-select.mjs
records-forms.list-header-menu-and-sort-levels` resolves the item, and
`pnpm check:platform-checklist` prints `check-platform-checklist: OK —
16 areas, 437 items`.

<details><summary>Gate readings at 0e001f0</summary>

```
check-platform-checklist: OK — 16 areas, 437 items (429 active, 3 planned); coverage: 40 kinds mapped, 4 waived; traps: 19 documented, 19 in use; ... symbol anchors: 1761/1771 resolved
dispatch-gates --ran: 17 derived famil(ies) accounted for — 17 run, 0 NOT-MEASURED
overlap-check: VERDICT clean exit 0
```

Every derived family exited 0: check-adr-links (and --self-test),
check-closing-keyword-parity (and --self-test),
check-comment-mask-corpus, plan-test-core-shards --self-test, lint
check:doc-formula-expressions (after building formula and lint),
check:adr-anchors, check:ci-filter-parity,
check:cross-package-test-inputs, check:doc-authoring,
check:driver-memory-census, check:gitlink-declared, check:nul-bytes,
check:platform-checklist, check:refd-timer-probe,
check:watch-hint-literal.

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (No code changed; CI runs
it.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Nothing
publishes: `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jTqAcPU4VyEPH7iVn2

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

列表排序:已有多级排序时点列头会把原来的排序全部清掉;点排序标签会直接把方向反过来

2 participants